﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace EzDesk.Core.Model
{
    public class Feed : IModel
    {
        [DataMember]
        public virtual Guid Id { get; set; }
        [DataMember]
        public virtual string FeedData { get; set; }
        [DataMember]
        public virtual Guid? OwnUserId { get; set; }
        [DataMember]
        public virtual System.DateTime CreateOn { get; set; }

        // UpdateOn属性在 FeedData发生变化时候更新
        [DataMember]
        public virtual System.DateTime UpdateOn { get; set; }
        [DataMember]
        public virtual System.DateTime? ExpireOn { get; set; }
        // LastChangeOn属性在 用户改变了Feed的IsAvilable, IsRead或IsRead式更新
        [DataMember]
        public virtual System.DateTime LastChangeOn { get; set; }

        

        [DataMember]
        public virtual string IconUrl { get; set; }
        [DataMember]
        public virtual Guid TemplateId { get; set; }
        [DataMember]
        public virtual int FeedType { get; set; }

        [DataMember]
        public virtual Guid? RecipientId { get; set; }

        [DataMember]
        public virtual bool? IsAvailable { get; set; }
        [DataMember]
        public virtual bool? IsRead { get; set; }
        [DataMember]
        public virtual bool? IsMark { get; set; }

        public string Icon { get; set; }
    }
}
